<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../value/value_en.php";
} else if($lang == "VN") {
	include "../value/value_vn.php";
}
else {
	include "../value/value_kr.php";
}
include '../operations/connection.php';	


if($_REQUEST['idtype']!=0)
	$assets=mysql_query("SELECT * FROM assets WHERE type =".$_REQUEST['idtype']);
else 
	$assets=mysql_query("SELECT * FROM assets ");
$isBorrow=array();
while ($r = mysql_fetch_array($assets)){
		$isBorrow[]=array($r['id'],$r['name'],$r['count'],$r['total']);
}



?>
<select id="nameAssets1" name="nameAssets1" style="width:185px;float:left;height:24px;">
			 						<option value="0"><?php echo $l_all;?></option>
									<?php 
						            $i=0;
						            foreach ($isBorrow as $value => $giatri)
								    {
						            	?>
						           	<option value="<?php echo $giatri[0];?>"><?php echo $giatri[1];?></option>
						            <?php 
						            $i++; 
									}
						            ?>	
									</select>
<?php mysql_close($connection);?>									